﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="CodingYourFirstBot.aspx.cs" Inherits="CodingYourFirstBot" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" Runat="Server">
    <p>This page will take you through the first steps of creating a bot in C#. For more help and content have a look at our <a href="http://www.codeplex.com/UT3Bots" target="_blank">project on codeplex</a>.</p>
    <br style="clear:both;" />
    <div class="frontbox">
        <dl>
            <dt>What you will need</dt>
            <dd>
                <ul>
                    <li>A computer with the t'internet</li>
                    <li><a href="http://www.microsoft.com/silverlight/resources/install.aspx?v=2.0" target="_blank">Silverlight 2</a></li>
                    <li>Visual Studio 2008 SP1 (<a href="http://www.microsoft.com/express/download/" target="_blank">C# Express</a> is free and awesome)</li>
                    <li>The <a href="/Files/UT3UserBot.vsi">starter kit</a></li>
                    <li>The <a href="/Files/Getting Started.docx">getting started guide</a></li>
                </ul>
            </dd>
        </dl>
    </div>
    <br style="clear:both;" />
    <h2>Configuring Visual Studio Express</h2>
    <p>To simplify configuring Visual Studio Express, we've created project templates for C#. Which you can download from <a href="/Files/UT3+Remote+Bots.vsi">here</a>.

    <p>To install just double click on your download to intall, the file isn't signed so there will be a warning which you'll need to accept. When you next load up Express you should see a “UT3 Remote Bots” Starter Kit in the new project window. </p>
    <h2>Coding Your First Bot</h2>
    <p>For a guide on how to create your first bot have a read of the <a href="/Files/Getting+Started.docx">"Getting Started Guide"</a></p>
    <h2>Using the Visualizer</h2>
    <p>You can find the visualizer <a href="Visualizer.aspx" target="_blank">here</a> and <a href="Visualizer.aspx" target="_blank">here full page</a>. With the visualizer you can see what's going on in the UT3 game. On the map you will be able to see nav points (green dots) and items. If you hover other any of them you will see a tool tip with more infromation.</p>
    <p>When a bot is in the game (or a player) you will see a dot of the same color as the player on the map with a extruding line indicating the direction the player is facing there is also a rectangular bar next to the dot indicating the health level of the player. The players will also appear in the scores section at the top of the screen, expanding it will show you detail about each player.</p>
    <p>One important thing to bear in mind about the Visualizer is that the map is in 2d but in reality is 3d so some levels will oclude the ones below them. Occasionally you will watch your bot and see it look straight at another bot and do nothing or walk right on by, what probably happenes was the other bot wasn't on the same floor as yours. You can get an indication of what level the bot is on by looking at the Z co-oridnate in the tool tip.</p>
</asp:Content>

